package cz.data.domain.quality.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import cz.data.common.mybatis.BaseDao;
import cz.data.domain.quality.model.entity.CheckReportEntity;
import cz.data.domain.quality.model.entity.DataReportEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CheckReportDao extends BaseDao<CheckReportEntity> {

    @Override
    <E extends IPage<CheckReportEntity>> E selectPage(E page, @Param(Constants.WRAPPER) Wrapper<CheckReportEntity> queryWrapper);

    List<DataReportEntity> getReportBySource(@Param("checkDate") String checkDate);

    List<DataReportEntity> getReportByType(@Param("checkDate") String checkDate);

    List<DataReportEntity> getReportDetail(@Param("checkDate") String checkDate);
}
